.class public Lorg/microemu/log/Logger;
.super Ljava/lang/Object;
.source "Logger.java"


# static fields
.field private static final FQCN:Ljava/lang/String;

.field static class$org$microemu$log$Logger:Ljava/lang/Class;

.field private static final fqcnSet:Ljava/util/Set;

.field private static java13:Z

.field private static locationEnabled:Z

.field private static final logFunctionsSet:Ljava/util/Set;

.field private static loggerAppenders:Ljava/util/List;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 53
    sget-object v0, Lorg/microemu/log/Logger;->class$org$microemu$log$Logger:Ljava/lang/Class;

    if-nez v0, :cond_0

    const-string v0, "org.microemu.log.Logger"

    invoke-static {v0}, Lorg/microemu/log/Logger;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/log/Logger;->class$org$microemu$log$Logger:Ljava/lang/Class;

    :goto_0
    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lorg/microemu/log/Logger;->FQCN:Ljava/lang/String;

    .line 55
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Lorg/microemu/log/Logger;->fqcnSet:Ljava/util/Set;

    .line 57
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    .line 59
    const/4 v0, 0x0

    sput-boolean v0, Lorg/microemu/log/Logger;->java13:Z

    .line 61
    const/4 v0, 0x1

    sput-boolean v0, Lorg/microemu/log/Logger;->locationEnabled:Z

    .line 63
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    sput-object v0, Lorg/microemu/log/Logger;->loggerAppenders:Ljava/util/List;

    .line 66
    sget-object v0, Lorg/microemu/log/Logger;->fqcnSet:Ljava/util/Set;

    sget-object v1, Lorg/microemu/log/Logger;->FQCN:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 67
    new-instance v0, Lorg/microemu/log/StdOutAppender;

    invoke-direct {v0}, Lorg/microemu/log/StdOutAppender;-><init>()V

    invoke-static {v0}, Lorg/microemu/log/Logger;->addAppender(Lorg/microemu/log/LoggerAppender;)V

    .line 71
    sget-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    const-string v1, "debug"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 72
    sget-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    const-string v1, "log"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 73
    sget-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    const-string v1, "error"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 74
    sget-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    const-string v1, "fatal"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 75
    sget-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    const-string v1, "info"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 76
    sget-object v0, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    const-string v1, "warn"

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 77
    return-void

    .line 53
    :cond_0
    sget-object v0, Lorg/microemu/log/Logger;->class$org$microemu$log$Logger:Ljava/lang/Class;

    goto :goto_0
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 51
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static addAppender(Lorg/microemu/log/LoggerAppender;)V
    .locals 1
    .parameter "newAppender"

    .prologue
    .line 316
    sget-object v0, Lorg/microemu/log/Logger;->loggerAppenders:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 317
    return-void
.end method

.method public static addLogOrigin(Ljava/lang/Class;)V
    .locals 2
    .parameter "origin"

    .prologue
    .line 312
    sget-object v0, Lorg/microemu/log/Logger;->fqcnSet:Ljava/util/Set;

    invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 313
    return-void
.end method

.method private static callAppenders(Lorg/microemu/log/LoggingEvent;)V
    .locals 3
    .parameter "event"

    .prologue
    .line 298
    sget-object v2, Lorg/microemu/log/Logger;->loggerAppenders:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, iter:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 299
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/microemu/log/LoggerAppender;

    .line 300
    .local v0, a:Lorg/microemu/log/LoggerAppender;
    invoke-interface {v0, p0}, Lorg/microemu/log/LoggerAppender;->append(Lorg/microemu/log/LoggingEvent;)V

    goto :goto_0

    .line 303
    .end local v0           #a:Lorg/microemu/log/LoggerAppender;
    :cond_0
    return-void
.end method

.method static class$(Ljava/lang/String;)Ljava/lang/Class;
    .locals 2
    .parameter "x0"

    .prologue
    .line 53
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    return-object v1

    :catch_0
    move-exception v0

    .local v0, x1:Ljava/lang/ClassNotFoundException;
    new-instance v1, Ljava/lang/NoClassDefFoundError;

    invoke-direct {v1}, Ljava/lang/NoClassDefFoundError;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/NoClassDefFoundError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v1

    throw v1
.end method

.method public static debug(Ljava/lang/String;)V
    .locals 2
    .parameter "message"

    .prologue
    .line 146
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 147
    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-static {v0, p0, v1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 149
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;J)V
    .locals 3
    .parameter "message"
    .parameter "v"

    .prologue
    .line 182
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 183
    const/4 v0, 0x1

    const/4 v1, 0x0

    new-instance v2, Lorg/microemu/log/LoggerDataWrapper;

    invoke-direct {v2, p1, p2}, Lorg/microemu/log/LoggerDataWrapper;-><init>(J)V

    invoke-static {v0, p0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 185
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;JJ)V
    .locals 3
    .parameter "message"
    .parameter "v1"
    .parameter "v2"

    .prologue
    .line 194
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 195
    const/4 v0, 0x1

    const/4 v1, 0x0

    new-instance v2, Lorg/microemu/log/LoggerDataWrapper;

    invoke-direct {v2, p1, p2, p3, p4}, Lorg/microemu/log/LoggerDataWrapper;-><init>(JJ)V

    invoke-static {v0, p0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 197
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 3
    .parameter "message"
    .parameter "o"

    .prologue
    .line 170
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 171
    const/4 v0, 0x1

    const/4 v1, 0x0

    new-instance v2, Lorg/microemu/log/LoggerDataWrapper;

    invoke-direct {v2, p1}, Lorg/microemu/log/LoggerDataWrapper;-><init>(Ljava/lang/Object;)V

    invoke-static {v0, p0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 173
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter "message"
    .parameter "v"

    .prologue
    .line 164
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 165
    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-static {v0, p0, v1, p1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 167
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter "message"
    .parameter "v1"
    .parameter "v2"

    .prologue
    .line 176
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 177
    const/4 v0, 0x1

    const/4 v1, 0x0

    new-instance v2, Lorg/microemu/log/LoggerDataWrapper;

    invoke-direct {v2, p1, p2}, Lorg/microemu/log/LoggerDataWrapper;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v0, p0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 179
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;Ljava/lang/Throwable;)V
    .locals 1
    .parameter "message"
    .parameter "t"

    .prologue
    .line 152
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 153
    const/4 v0, 0x1

    invoke-static {v0, p0, p1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 155
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/String;Z)V
    .locals 3
    .parameter "message"
    .parameter "v"

    .prologue
    .line 200
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 201
    const/4 v0, 0x1

    const/4 v1, 0x0

    new-instance v2, Lorg/microemu/log/LoggerDataWrapper;

    invoke-direct {v2, p1}, Lorg/microemu/log/LoggerDataWrapper;-><init>(Z)V

    invoke-static {v0, p0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 203
    :cond_0
    return-void
.end method

.method public static debug(Ljava/lang/Throwable;)V
    .locals 2
    .parameter "t"

    .prologue
    .line 158
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 159
    const/4 v0, 0x1

    const-string v1, "error"

    invoke-static {v0, v1, p0}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 161
    :cond_0
    return-void
.end method

.method public static debug0x(Ljava/lang/String;J)V
    .locals 5
    .parameter "message"
    .parameter "v"

    .prologue
    .line 188
    invoke-static {}, Lorg/microemu/log/Logger;->isDebugEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 189
    const/4 v0, 0x1

    const/4 v1, 0x0

    new-instance v2, Lorg/microemu/log/LoggerDataWrapper;

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    const-string v4, "0x"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-static {p1, p2}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Lorg/microemu/log/LoggerDataWrapper;-><init>(Ljava/lang/Object;)V

    invoke-static {v0, p0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 191
    :cond_0
    return-void
.end method

.method public static debugClassLoader(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 8
    .parameter "message"
    .parameter "obj"

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    const-string v7, " "

    .line 206
    if-nez p1, :cond_0

    .line 207
    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v3, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, " no class, no object"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3, v5, v5}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 229
    :goto_0
    return-void

    .line 211
    :cond_0
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    .line 212
    .local v1, buf:Ljava/lang/StringBuffer;
    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, " "

    invoke-virtual {v3, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 213
    instance-of v3, p1, Ljava/lang/Class;

    if-eqz v3, :cond_1

    .line 214
    move-object v0, p1

    check-cast v0, Ljava/lang/Class;

    move-object v2, v0

    .line 215
    .local v2, klass:Ljava/lang/Class;
    const-string v3, "class "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 220
    :goto_1
    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string v4, " loaded by "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 221
    invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 222
    invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I

    move-result v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 223
    const-string v3, " "

    invoke-virtual {v1, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 224
    invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 228
    :goto_2
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v6, v3, v5, v5}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    goto :goto_0

    .line 217
    .end local v2           #klass:Ljava/lang/Class;
    :cond_1
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    .line 218
    .restart local v2       #klass:Ljava/lang/Class;
    const-string v3, "instance "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_1

    .line 226
    :cond_2
    const-string v3, "system"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_2
.end method

.method public static error(Ljava/lang/Object;)V
    .locals 3
    .parameter "message"

    .prologue
    .line 262
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 263
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 265
    :cond_0
    return-void
.end method

.method public static error(Ljava/lang/String;)V
    .locals 3
    .parameter "message"

    .prologue
    .line 256
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 257
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 259
    :cond_0
    return-void
.end method

.method public static error(Ljava/lang/String;J)V
    .locals 4
    .parameter "message"
    .parameter "v"

    .prologue
    .line 268
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 269
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    new-instance v3, Lorg/microemu/log/LoggerDataWrapper;

    invoke-direct {v3, p1, p2}, Lorg/microemu/log/LoggerDataWrapper;-><init>(J)V

    invoke-static {v0, v1, v2, v3}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 271
    :cond_0
    return-void
.end method

.method public static error(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter "message"
    .parameter "v"

    .prologue
    .line 274
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 275
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2, p1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 277
    :cond_0
    return-void
.end method

.method public static error(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    .locals 3
    .parameter "message"
    .parameter "v"
    .parameter "t"

    .prologue
    .line 280
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 281
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, p2, p1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 283
    :cond_0
    return-void
.end method

.method public static error(Ljava/lang/String;Ljava/lang/Throwable;)V
    .locals 3
    .parameter "message"
    .parameter "t"

    .prologue
    .line 292
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 293
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, p1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 295
    :cond_0
    return-void
.end method

.method public static error(Ljava/lang/Throwable;)V
    .locals 3
    .parameter "t"

    .prologue
    .line 286
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 287
    const/4 v0, 0x4

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p0}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, p0}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 289
    :cond_0
    return-void
.end method

.method private static getLocation()Ljava/lang/StackTraceElement;
    .locals 9

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 96
    sget-boolean v5, Lorg/microemu/log/Logger;->java13:Z

    if-nez v5, :cond_0

    sget-boolean v5, Lorg/microemu/log/Logger;->locationEnabled:Z

    if-nez v5, :cond_1

    :cond_0
    move-object v5, v8

    .line 131
    :goto_0
    return-object v5

    .line 100
    :cond_1
    :try_start_0
    new-instance v5, Ljava/lang/Throwable;

    invoke-direct {v5}, Ljava/lang/Throwable;-><init>()V

    invoke-virtual {v5}, Ljava/lang/Throwable;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v3

    .line 101
    .local v3, ste:[Ljava/lang/StackTraceElement;
    const/4 v4, 0x0

    .line 102
    .local v4, wrapperFound:Z
    const/4 v1, 0x0

    .local v1, i:I
    :goto_1
    array-length v5, v3

    sub-int/2addr v5, v7

    if-ge v1, v5, :cond_7

    .line 103
    sget-object v5, Lorg/microemu/log/Logger;->fqcnSet:Ljava/util/Set;

    aget-object v6, v3, v1

    invoke-virtual {v6}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v5, v6}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_6

    .line 104
    const/4 v4, 0x0

    .line 105
    add-int/lit8 v5, v1, 0x1

    aget-object v5, v3, v5

    invoke-virtual {v5}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v2

    .line 106
    .local v2, nextClassName:Ljava/lang/String;
    const-string v5, "java."

    invoke-virtual {v2, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_2

    const-string v5, "sun."

    invoke-virtual {v2, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 102
    .end local v2           #nextClassName:Ljava/lang/String;
    :cond_2
    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 109
    .restart local v2       #nextClassName:Ljava/lang/String;
    :cond_3
    sget-object v5, Lorg/microemu/log/Logger;->fqcnSet:Ljava/util/Set;

    invoke-interface {v5, v2}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    .line 110
    sget-object v5, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    add-int/lit8 v6, v1, 0x1

    aget-object v6, v3, v6

    invoke-virtual {v6}, Ljava/lang/StackTraceElement;->getMethodName()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v5, v6}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 111
    const/4 v4, 0x1

    goto :goto_2

    .line 114
    :cond_4
    const-string v5, "$Proxy"

    invoke-virtual {v2, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 115
    add-int/lit8 v5, v1, 0x2

    aget-object v5, v3, v5

    goto :goto_0

    .line 117
    :cond_5
    add-int/lit8 v5, v1, 0x1

    aget-object v5, v3, v5

    goto :goto_0

    .line 121
    .end local v2           #nextClassName:Ljava/lang/String;
    :cond_6
    if-eqz v4, :cond_2

    .line 122
    sget-object v5, Lorg/microemu/log/Logger;->logFunctionsSet:Ljava/util/Set;

    aget-object v6, v3, v1

    invoke-virtual {v6}, Ljava/lang/StackTraceElement;->getMethodName()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v5, v6}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    .line 123
    aget-object v5, v3, v1

    goto :goto_0

    .line 127
    :cond_7
    array-length v5, v3

    sub-int/2addr v5, v7

    aget-object v5, v3, v5
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 128
    .end local v3           #ste:[Ljava/lang/StackTraceElement;
    .end local v4           #wrapperFound:Z
    .end local v1           #i:I
    :catch_0
    move-exception v5

    move-object v0, v5

    .line 129
    .local v0, e:Ljava/lang/Throwable;
    sput-boolean v7, Lorg/microemu/log/Logger;->java13:Z

    move-object v5, v8

    .line 131
    goto/16 :goto_0
.end method

.method public static info(Ljava/lang/Object;)V
    .locals 3
    .parameter "message"

    .prologue
    .line 238
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 239
    const/4 v0, 0x2

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 241
    :cond_0
    return-void
.end method

.method public static info(Ljava/lang/String;)V
    .locals 2
    .parameter "message"

    .prologue
    .line 232
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 233
    const/4 v0, 0x2

    const/4 v1, 0x0

    invoke-static {v0, p0, v1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 235
    :cond_0
    return-void
.end method

.method public static info(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter "message"
    .parameter "data"

    .prologue
    .line 244
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 245
    const/4 v0, 0x2

    const/4 v1, 0x0

    invoke-static {v0, p0, v1, p1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V

    .line 247
    :cond_0
    return-void
.end method

.method public static isDebugEnabled()Z
    .locals 1

    .prologue
    .line 80
    const/4 v0, 0x1

    return v0
.end method

.method public static isErrorEnabled()Z
    .locals 1

    .prologue
    .line 84
    const/4 v0, 0x1

    return v0
.end method

.method public static isLocationEnabled()Z
    .locals 1

    .prologue
    .line 88
    sget-boolean v0, Lorg/microemu/log/Logger;->locationEnabled:Z

    return v0
.end method

.method public static removeAllAppenders()V
    .locals 1

    .prologue
    .line 324
    sget-object v0, Lorg/microemu/log/Logger;->loggerAppenders:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 325
    return-void
.end method

.method public static removeAppender(Lorg/microemu/log/LoggerAppender;)V
    .locals 1
    .parameter "appender"

    .prologue
    .line 320
    sget-object v0, Lorg/microemu/log/Logger;->loggerAppenders:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 321
    return-void
.end method

.method public static setLocationEnabled(Z)V
    .locals 0
    .parameter "state"

    .prologue
    .line 92
    sput-boolean p0, Lorg/microemu/log/Logger;->locationEnabled:Z

    .line 93
    return-void
.end method

.method public static threadDumpToConsole()V
    .locals 11

    .prologue
    const-string v8, " "

    const-string v8, "\n"

    .line 329
    :try_start_0
    new-instance v4, Ljava/lang/StringBuffer;

    const-string v8, "Full ThreadDump\n"

    invoke-direct {v4, v8}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    .line 330
    .local v4, out:Ljava/lang/StringBuffer;
    invoke-static {}, Ljava/lang/Thread;->getAllStackTraces()Ljava/util/Map;

    move-result-object v7

    .line 331
    .local v7, traces:Ljava/util/Map;
    invoke-interface {v7}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v8

    invoke-interface {v8}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    .local v3, iterator:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_2

    .line 332
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 333
    .local v1, entry:Ljava/util/Map$Entry;
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/Thread;

    .line 334
    .local v6, thread:Ljava/lang/Thread;
    new-instance v8, Ljava/lang/StringBuffer;

    invoke-direct {v8}, Ljava/lang/StringBuffer;-><init>()V

    const-string v9, "Thread= "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v6}, Ljava/lang/Thread;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    const-string v9, " "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v6}, Ljava/lang/Thread;->isDaemon()Z

    move-result v9

    if-eqz v9, :cond_0

    const-string v9, "daemon"

    :goto_1
    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    const-string v9, " prio="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v6}, Ljava/lang/Thread;->getPriority()I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v8

    const-string v9, "id="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v6}, Ljava/lang/Thread;->getId()J

    move-result-wide v9

    invoke-virtual {v8, v9, v10}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    move-result-object v8

    const-string v9, " "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v6}, Ljava/lang/Thread;->getState()Ljava/lang/Thread$State;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 336
    const-string v8, "\n"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 338
    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    .end local v1           #entry:Ljava/util/Map$Entry;
    check-cast v1, [Ljava/lang/StackTraceElement;

    move-object v0, v1

    check-cast v0, [Ljava/lang/StackTraceElement;

    move-object v5, v0

    .line 339
    .local v5, ste:[Ljava/lang/StackTraceElement;
    const/4 v2, 0x0

    .local v2, i:I
    :goto_2
    array-length v8, v5

    if-ge v2, v8, :cond_1

    .line 340
    const-string v8, "\t"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 341
    aget-object v8, v5, v2

    invoke-virtual {v8}, Ljava/lang/StackTraceElement;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 342
    const-string v8, "\n"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 339
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 334
    .end local v5           #ste:[Ljava/lang/StackTraceElement;
    .end local v2           #i:I
    .restart local v1       #entry:Ljava/util/Map$Entry;
    :cond_0
    const-string v9, ""

    goto :goto_1

    .line 344
    .end local v1           #entry:Ljava/util/Map$Entry;
    .restart local v2       #i:I
    .restart local v5       #ste:[Ljava/lang/StackTraceElement;
    :cond_1
    const-string v8, "---------------------------------\n"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto/16 :goto_0

    .line 347
    .end local v4           #out:Ljava/lang/StringBuffer;
    .end local v7           #traces:Ljava/util/Map;
    .end local v3           #iterator:Ljava/util/Iterator;
    .end local v6           #thread:Ljava/lang/Thread;
    .end local v2           #i:I
    .end local v5           #ste:[Ljava/lang/StackTraceElement;
    :catch_0
    move-exception v8

    .line 349
    :goto_3
    return-void

    .line 346
    .restart local v3       #iterator:Ljava/util/Iterator;
    .restart local v4       #out:Ljava/lang/StringBuffer;
    .restart local v7       #traces:Ljava/util/Map;
    :cond_2
    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Lorg/microemu/log/Logger;->info(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3
.end method

.method public static threadDumpToFile()V
    .locals 14

    .prologue
    const-string v11, " "

    const-string v11, "\n"

    .line 352
    new-instance v3, Ljava/text/SimpleDateFormat;

    const-string v11, "MM-dd_HH-mm-ss"

    invoke-direct {v3, v11}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 353
    .local v3, fmt:Ljava/text/SimpleDateFormat;
    const/4 v6, 0x0

    .line 355
    .local v6, out:Ljava/io/OutputStreamWriter;
    :try_start_0
    new-instance v2, Ljava/io/File;

    new-instance v11, Ljava/lang/StringBuffer;

    invoke-direct {v11}, Ljava/lang/StringBuffer;-><init>()V

    const-string v12, "ThreadDump-"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    new-instance v12, Ljava/util/Date;

    invoke-direct {v12}, Ljava/util/Date;-><init>()V

    invoke-virtual {v3, v12}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    const-string v12, ".log"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-direct {v2, v11}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 356
    .local v2, file:Ljava/io/File;
    new-instance v7, Ljava/io/FileWriter;

    invoke-direct {v7, v2}, Ljava/io/FileWriter;-><init>(Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1

    .line 357
    .local v7, out:Ljava/io/OutputStreamWriter;
    :try_start_1
    invoke-static {}, Ljava/lang/Thread;->getAllStackTraces()Ljava/util/Map;

    .end local v6           #out:Ljava/io/OutputStreamWriter;
    move-result-object v10

    .line 358
    .local v10, traces:Ljava/util/Map;
    invoke-interface {v10}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v11

    invoke-interface {v11}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    .local v5, iterator:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v11

    if-eqz v11, :cond_2

    .line 359
    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 360
    .local v1, entry:Ljava/util/Map$Entry;
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/Thread;

    .line 361
    .local v9, thread:Ljava/lang/Thread;
    new-instance v11, Ljava/lang/StringBuffer;

    invoke-direct {v11}, Ljava/lang/StringBuffer;-><init>()V

    const-string v12, "Thread= "

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v9}, Ljava/lang/Thread;->getName()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    const-string v12, " "

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v9}, Ljava/lang/Thread;->isDaemon()Z

    move-result v12

    if-eqz v12, :cond_0

    const-string v12, "daemon"

    :goto_1
    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    const-string v12, " prio="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v9}, Ljava/lang/Thread;->getPriority()I

    move-result v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v11

    const-string v12, "id="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v9}, Ljava/lang/Thread;->getId()J

    move-result-wide v12

    invoke-virtual {v11, v12, v13}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    move-result-object v11

    const-string v12, " "

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v9}, Ljava/lang/Thread;->getState()Ljava/lang/Thread$State;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Ljava/io/OutputStreamWriter;->write(Ljava/lang/String;)V

    .line 363
    const-string v11, "\n"

    invoke-virtual {v7, v11}, Ljava/io/OutputStreamWriter;->write(Ljava/lang/String;)V

    .line 365
    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    .end local v1           #entry:Ljava/util/Map$Entry;
    check-cast v1, [Ljava/lang/StackTraceElement;

    move-object v0, v1

    check-cast v0, [Ljava/lang/StackTraceElement;

    move-object v8, v0

    .line 366
    .local v8, ste:[Ljava/lang/StackTraceElement;
    const/4 v4, 0x0

    .local v4, i:I
    :goto_2
    array-length v11, v8

    if-ge v4, v11, :cond_1

    .line 367
    const-string v11, "\t"

    invoke-virtual {v7, v11}, Ljava/io/OutputStreamWriter;->write(Ljava/lang/String;)V

    .line 368
    aget-object v11, v8, v4

    invoke-virtual {v11}, Ljava/lang/StackTraceElement;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Ljava/io/OutputStreamWriter;->write(Ljava/lang/String;)V

    .line 369
    const-string v11, "\n"

    invoke-virtual {v7, v11}, Ljava/io/OutputStreamWriter;->write(Ljava/lang/String;)V

    .line 366
    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    .line 361
    .end local v8           #ste:[Ljava/lang/StackTraceElement;
    .end local v4           #i:I
    .restart local v1       #entry:Ljava/util/Map$Entry;
    :cond_0
    const-string v12, ""

    goto :goto_1

    .line 371
    .end local v1           #entry:Ljava/util/Map$Entry;
    .restart local v4       #i:I
    .restart local v8       #ste:[Ljava/lang/StackTraceElement;
    :cond_1
    const-string v11, "---------------------------------\n"

    invoke-virtual {v7, v11}, Ljava/io/OutputStreamWriter;->write(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    .line 376
    .end local v10           #traces:Ljava/util/Map;
    .end local v5           #iterator:Ljava/util/Iterator;
    .end local v9           #thread:Ljava/lang/Thread;
    .end local v4           #i:I
    .end local v8           #ste:[Ljava/lang/StackTraceElement;
    :catch_0
    move-exception v11

    move-object v6, v7

    .line 378
    .end local v2           #file:Ljava/io/File;
    .end local v7           #out:Ljava/io/OutputStreamWriter;
    .restart local v6       #out:Ljava/io/OutputStreamWriter;
    :goto_3
    invoke-static {v6}, Lorg/microemu/app/util/IOUtils;->closeQuietly(Ljava/io/Writer;)V

    .line 380
    :goto_4
    return-void

    .line 373
    .end local v6           #out:Ljava/io/OutputStreamWriter;
    .restart local v2       #file:Ljava/io/File;
    .restart local v5       #iterator:Ljava/util/Iterator;
    .restart local v7       #out:Ljava/io/OutputStreamWriter;
    .restart local v10       #traces:Ljava/util/Map;
    :cond_2
    :try_start_2
    invoke-virtual {v7}, Ljava/io/OutputStreamWriter;->close()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0

    .line 374
    const/4 v6, 0x0

    .line 375
    .restart local v6       #out:Ljava/io/OutputStreamWriter;
    :try_start_3
    new-instance v11, Ljava/lang/StringBuffer;

    .end local v7           #out:Ljava/io/OutputStreamWriter;
    invoke-direct {v11}, Ljava/lang/StringBuffer;-><init>()V

    const-string v12, "Full ThreadDump created "

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Lorg/microemu/log/Logger;->info(Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_1

    .line 378
    invoke-static {v6}, Lorg/microemu/app/util/IOUtils;->closeQuietly(Ljava/io/Writer;)V

    goto :goto_4

    .end local v2           #file:Ljava/io/File;
    .end local v5           #iterator:Ljava/util/Iterator;
    .end local v10           #traces:Ljava/util/Map;
    :catchall_0
    move-exception v11

    :goto_5
    invoke-static {v6}, Lorg/microemu/app/util/IOUtils;->closeQuietly(Ljava/io/Writer;)V

    throw v11

    .end local v6           #out:Ljava/io/OutputStreamWriter;
    .restart local v2       #file:Ljava/io/File;
    .restart local v7       #out:Ljava/io/OutputStreamWriter;
    :catchall_1
    move-exception v11

    move-object v6, v7

    .restart local v6       #out:Ljava/io/OutputStreamWriter;
    goto :goto_5

    .line 376
    .end local v2           #file:Ljava/io/File;
    .end local v7           #out:Ljava/io/OutputStreamWriter;
    :catch_1
    move-exception v11

    goto :goto_3
.end method

.method public static warn(Ljava/lang/String;)V
    .locals 2
    .parameter "message"

    .prologue
    .line 250
    invoke-static {}, Lorg/microemu/log/Logger;->isErrorEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 251
    const/4 v0, 0x3

    const/4 v1, 0x0

    invoke-static {v0, p0, v1}, Lorg/microemu/log/Logger;->write(ILjava/lang/String;Ljava/lang/Throwable;)V

    .line 253
    :cond_0
    return-void
.end method

.method private static write(ILjava/lang/String;Ljava/lang/Throwable;)V
    .locals 3
    .parameter "level"
    .parameter "message"
    .parameter "throwable"

    .prologue
    .line 135
    :goto_0
    if-eqz p1, :cond_0

    const-string v0, "\n"

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 136
    const/4 v0, 0x0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 138
    :cond_0
    new-instance v0, Lorg/microemu/log/LoggingEvent;

    invoke-static {}, Lorg/microemu/log/Logger;->getLocation()Ljava/lang/StackTraceElement;

    move-result-object v1

    invoke-direct {v0, p0, p1, v1, p2}, Lorg/microemu/log/LoggingEvent;-><init>(ILjava/lang/String;Ljava/lang/StackTraceElement;Ljava/lang/Throwable;)V

    invoke-static {v0}, Lorg/microemu/log/Logger;->callAppenders(Lorg/microemu/log/LoggingEvent;)V

    .line 139
    return-void
.end method

.method private static write(ILjava/lang/String;Ljava/lang/Throwable;Ljava/lang/Object;)V
    .locals 6
    .parameter "level"
    .parameter "message"
    .parameter "throwable"
    .parameter "data"

    .prologue
    .line 142
    new-instance v0, Lorg/microemu/log/LoggingEvent;

    invoke-static {}, Lorg/microemu/log/Logger;->getLocation()Ljava/lang/StackTraceElement;

    move-result-object v3

    move v1, p0

    move-object v2, p1

    move-object v4, p2

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lorg/microemu/log/LoggingEvent;-><init>(ILjava/lang/String;Ljava/lang/StackTraceElement;Ljava/lang/Throwable;Ljava/lang/Object;)V

    invoke-static {v0}, Lorg/microemu/log/Logger;->callAppenders(Lorg/microemu/log/LoggingEvent;)V

    .line 143
    return-void
.end method
